 
package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.CustomerWorkLogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
* @author autoGen
* @time 2018-06-06 19:45:16
*/
@Repository
@Mapper
public interface CustomerWorkLogDao {

	Integer insert(CustomerWorkLogEntity customerWorkLog);
	Integer update(CustomerWorkLogEntity customerWorkLog);

	void insertBatch(List<CustomerWorkLogEntity> customerWorkLogList);
	
	Integer deleteByKey(@Param("key") Integer key, @Param("corpid") String corpid);
	CustomerWorkLogEntity getByKey (@Param("key") Integer key, @Param("corpid") String corpid);

	List<CustomerWorkLogEntity> findEntitys(@Param("param") Map<String, Object> param);
	Integer getEntitysCount(@Param("param") Map<String, Object> param);

	/**
	 * 获取Image不为空且不为空数组的数据（改image格式，脚本用）
	 * @return
	 */
	@Deprecated
	List<CustomerWorkLogEntity> getImageNotNull4Script();

	/**
	 * 修改Image为附件格式（脚本用）
	 * @return
	 */
	@Deprecated
	Integer updateBatchImageFormat4Script(@Param("list") List<CustomerWorkLogEntity> list);
}